<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div>
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="row">
                        <div class="col-sm-12">
                            <div>
                                <div class="checkbox i-checks">
                                    <a th:href="@{/admin/user/cus/selectMemberList?selectType={selectType}(selectType=${selectType})}"><span><button class="btn btn-white" data-toggle="tooltip" data-placement="top" title="" data-original-title="刷新会员列表"><i class="fa fa-refresh"></i> 刷新</button></span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="oc-ibox-content">
                    <div class="table-responsive">
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th class="text-center">
                                    <div class="table-first-id">ID</div>
                                </th>
                                <th class="text-center" width="30%">会员名称</th>
                                <th class="text-center" width="15%">会员价格</th>
                                <th class="text-center" width="10%">有效天数</th>
                                <th class="text-center" width="30%">会员描述</th>
                            </tr>
                            </thead>
                        </table>
                        <div class="J_V_tabContent table-xScrollWrap">
                            <table class="table table-bordered table-hover table-xs-content ">
                                <tbody id="member-list-context">
                                    <tr class="jqgfirstrow" role="row">
                                        <td role="gridcell"><div class="table-first-id">&nbsp;</div></td>
                                        <td role="gridcell" width="30%"></td>
                                        <td role="gridcell" width="15%"></td>
                                        <td role="gridcell" width="10%"></td>
                                        <td role="gridcell" width="30%"></td>
                                    </tr>
                                    <tr th:if="!${#lists.isEmpty(memberList)}" th:each="member:${memberList}" th:attr="id=${member['id']}">
                                        <td class="text-center">
                                            <input name="id" th:type="${#strings.isEmpty(selectType)}?'radio':${selectType}" class="i-checks" th:attr="data-orprice=${member['price']}" th:title="${member['memberName']}" th:value="${member['id']}">
                                        </td>
                                        <td class="text-center" th:text="${member['memberName']}"></td>
                                        <td class="text-center" th:text="${member['price']}"></td>
                                        <td class="text-center" th:text="${member['validDay']}+'天'"></td>
                                        <td class="text-center"  th:text="${member['depict']}"></td>
                                    </tr>
                                    <tr th:if="${#lists.isEmpty(memberList)}">
                                        <td colspan="8" class="text-center">
                                            <div class="noDataTipsBox">
                                                <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                                            </div>
                                        </td>
                                    </tr >
                                </tbody>
                            </table>
                        </div>
                </div>
            </div>
        </div>
    </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/admin/business/user/member/select-member-list.js?v={v}(path=${staticPath},v=${v})}"> </script>
    <script th:inline="javascript" type="text/javascript">
        var selectType = [[${selectType}]];
    </script>
</body>
</html>
